package com.xnyzc.lhy.common.penum.cms;

/**
 * @author wangshuo
 * @date:2019-09-02
 */
public enum EMenuShow {
    notShow(0, "隐藏"),
    show(1, "显示");

    public static EMenuShow findStatus(Integer type) {
        EMenuShow eVehicleType;
        switch (type) {
            case 0:
                eVehicleType = EMenuShow.notShow;
                break;
            case 1:
                eVehicleType = EMenuShow.show;
                break;
            default:
                throw new IllegalArgumentException("未设置");
        }
        return eVehicleType;
    }

    private Integer value;
    private String desc;


    EMenuShow(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
